import { computed } from 'vue'
import { useStore } from '/@/store'

export function useLoginer() {
  const { state } = useStore()

  return {
    loginer: computed(() => state.userInfo),
    isEducation: computed(() => state.tenant?.regionType === '1'),
    isSchool: computed(() => state.tenant?.regionType === '0'),
  }
}
